<?php

use App\Models\OpenWechat\WechatUser;
use App\Models\Panx\VisitType;
use App\Models\Store\Store;
use Faker\Generator as Faker;
use Illuminate\Http\UploadedFile;

/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| This directory should contain each of the model factory definitions for
| your application. Factories provide a convenient way to generateUrl new
| model instances for testing / seeding your application's database.
|
*/


/** @var \Illuminate\Database\Eloquent\Factory $factory */
$factory->define(\App\Models\Customer\Advert::class, function (Faker $faker) {
    return [
        'customer_id'      => $faker->numberBetween(1, 1230),
        'advert_type_id'   => $faker->numberBetween(1, 2),
        'name'             => $faker->name,
        'content_key'      => UploadedFile::fake()->create('url.jpg'),
        'play_second'      => $faker->numberBetween(12, 60),
    ];
});
